package com.woniuxy.store.client;

import com.woniuxy.store.client.param.MemberExchangeParam.AddMemberCouponParams;
import com.woniuxy.store.client.param.MemberExchangeParam.ExchangeCouponSearchParams;
import com.woniuxy.store.client.param.MemberExchangeParam.ModifyMemberCouponParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import result.Result;



@FeignClient(contextId = "memberCouponClient",name="store",path="/store/marketing")
public interface MemberCouponClient {
    @GetMapping("/getScoreExchangeCoupon")
    public Result getScoreExchangeCoupon(@SpringQueryMap ExchangeCouponSearchParams exchangeCouponSearchParams);

    @PostMapping("/addMemberCoupon")
    public Result addMemberCoupon(@RequestBody AddMemberCouponParams addMemberCouponParams);

    @PutMapping("/modifyMemberCoupon")
    public Result modifyMemberCoupon(@RequestBody ModifyMemberCouponParams modifyMemberCouponParams);

    @DeleteMapping("/delMemberCoupon")
    public Result delMemberCoupon(@RequestParam("exchangeCouponId")Integer exchangeCouponId);
}
